﻿namespace AbpCodeGenerater.Core
{
    public class AbpProject
    {
        public string? Name { get; set; }

        public string? ShortName
        {
            get
            {
                if(string.IsNullOrWhiteSpace(Name)) return null;
                var lastPointIndex = Name.LastIndexOf('.');
                if(lastPointIndex == -1) return null;

                return Name.Substring(lastPointIndex + 1);
            }
        }

        public string? Path { get; set; }

        public string? FullPath { get; set; }

        public AbpSolution? AbpSolution { get; set; }
    }
}
